import request from "../utils/request"

//获取学院全部列表
export function GetAcademyList(params){
    return request.get("/academy",{params});
}

//修改学院
export function UpdateAcademy(id,data){
    return request.put(`/academy/${id}`,data);
}

//添加学院
export function AddAcademy(data){
    return request.post(`/academy`,data);
}

//删除学院
export function DeleteAcademy(id){
    return request.delete(`/academy/${id}`);
}

//模糊查询学院
export function QueryAcademy(keyword){
    return request.get(`/academy?keyword=`+keyword);
}